/**
 * Created by wangyg on 2016/11/7.
 */
public class TestEgg {
	public static void main(String[] args) {
		for (int i = 1; i <10000 ; i++) {
			if(i%1==0
					&&i%2==1
					&&i%3==0
					&&i%4==1
					&&i%5==4
					&&i%6==3
					&&i%7==0
					&&i%8==1
					&&i%9==0){
				System.out.println(i);
			}
		}
	}
}
